//
//  RBLogInAndOutTool.h
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^loginBlock) (NSString *user, NSUInteger appId, NSString *userSig);

@interface RBLogInAndOutTool : NSObject

+ (instancetype)shareInstance;
-(void)rb_logout;
-(void)rb_login:(loginBlock)callback;
-(void)rb_saveLogin:(NSString *)user
        withAppId:(NSUInteger)appId
      withUserSig:(NSString *)sig;

///清除本地缓存
-(void)rb_clearCache;
///获取path路径下文件夹的大小
-(NSString *)rb_getCacheSizeWithFilePath:(NSString *)path;
///清除path路径下文件夹的缓存
-(void)rb_clearCacheWithFilePath:(NSString *)path;
///清空网页缓存
-(void)rb_clearWebCache;

@end

NS_ASSUME_NONNULL_END
